package com.hengtiansoft.lfy.widget;

import android.view.View;
import android.widget.PopupWindow;

/**
 * @ClassName: MyPopupWindow
 * @Description: 下拉菜单
 * @author caijiajun
 * @date 2015年10月12日 下午2:46:54
 * 
 */
public class MyPopupWindow extends PopupWindow {
    private OnDismiss mDismiss;

    public MyPopupWindow(View view, int width, int height, OnDismiss mDismiss) {
        super(view, width, height);
        this.mDismiss = mDismiss;
    }

    @Override
    public void dismiss() {
        mDismiss.onDismiss();
        super.dismiss();
    }

    public interface OnDismiss {
        public void onDismiss();
    }

}
